<template>
  <el-dialog
    title="详情"
    v-model="dialogVisible"
    width="60%"
    :before-close="onClose"
  >
    <el-descriptions title="瞬时数据">
      <div v-for="(item, index) in pointDetail" :key="index">
        <el-descriptions-item :label="item.propertyName + '  :'">
          {{ item.data[0] }}
        </el-descriptions-item>
      </div>
    </el-descriptions>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="onClose">取 消</el-button>
      </span>
    </template>
  </el-dialog>
</template>

<script>
export default {
  props: {
    pointDetail: Array,
  },
  data() {
    return {
      dialogVisible: true,
    }
  },
  methods: {
    onClose() {
      this.$emit('onClose')
    },
  },
}
</script>

<style></style>
